package uk.co.revisual.domino.reasons
{
	import flexunit.framework.Assert;
	
	import org.puremvc.as3.multicore.utilities.statemachine.State;
	
	
	public class CancellationReasonTest
	{		
		
		
		
		[Test]
		public function testGet_body():void
		{
			var testSubject:CancellationReason = new CancellationReason(null, 8, null, null );
			Assert.assertEquals(testSubject.body, 8);
		}
		
		[Test]
		public function testGet_currentState():void
		{
			var state:State = new State("testState");
			var testSubject:CancellationReason = new CancellationReason(null, null, null, state );
			Assert.assertEquals(testSubject.currentState, state);
			
		}
		
		[Test]
		public function testGet_reason():void
		{
			var testSubject:CancellationReason = new CancellationReason("testReason", null, null, null );
			Assert.assertEquals(testSubject.reason, "testReason");
		}
		
		[Test]
		public function testGet_referringAction():void
		{
			var testSubject:CancellationReason = new CancellationReason(null, null,"testAction", null );
			Assert.assertEquals(testSubject.referringAction, "testAction");
		}
	}
}